.text 
_start:

MAIN:
	BL LED_CONFIG
LOOP: @循环
	BL LED_ON
	BL DELAY
	BL LED_OFF
	BL DELAY
	B LOOP

@LED配置引脚功能
LED_CONFIG:
	@ GPX2CON R2
	LDR R2, =0x11000c40 @伪指令，将0x11000c40存入R2中
	LDR R1, =0x10000000 @ 00010000 00000000 00000000 00000000（二进制）
	STR R1, [R2]
	MOV PC, LR

@LED灯亮
LED_ON:
	@ GPX2DAT R2
	LDR R2, =0x11000c44
	LDR R1, =0x00000080 @控制LED高低电平 0 off / 1 on（第七位）
	STR R1, [R2]
	MOV PC, LR

@LED灯灭
LED_OFF:
	@ GPX2DAT R2
	LDR R2, =0x11000c44
	LDR R1, =0x00000000 @控制LED高低电平 0 off / 1 on（第七位）
	STR R1, [R2]
	MOV PC, LR

@延迟时间
DELAY:
	LDR R1, =100000000
L:
	SUB R1, R1, #1
	CMP R1, #0
	BNE L
	

STOP:
	B STOP
.end
